home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-12-08 | 1.2 KB | 37 lines | [TEXT/GEOL] |
- Item forwarded by CPLUS.ADMIN to CP.ARCHIVES
-
- Item 2679083 29-Nov-89 16:02
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: CPLUS.APPLE$ C++ Interest List--Apple Employees
- CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: RE>Multiple base operator
-
- Attn: C++ Apple
- Attn: C++ Public
- SentBy: Larry Rosenstein
- Date 11/29/89
- Subject RE>Multiple base operator n
- From Larry Rosenstein
- To C++ Apple
- C++ Public
-
- Reply to: RE>Multiple base operator new
- First, I think operator new is a static member function, so it isn't
- inherited. So there is no ambiguity in your example. (Also, you don't show
- class B as implementing operator new.)
-
- If you were talking about a normal member function (say Foo()) and both A and
- B declared Foo(), then you would have an ambiguity. The reference manual
- refers to the fact that you resolve the ambiguity by declaring C::Foo() and
- within that function explicitly calling A::Foo() and/or B::Foo(). In other
- words, you are responsible for resolving the ambiguity by explicitly coding
- calls to the inherited methods.
-
- Larry Rosenstein
-
-
-
-